package com.zhump.springcloud.zookeeper.server.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * zookeeper测试类
 */
@RestController
@RequestMapping("/zookeeper")
public class ZookeeperController {

    @Value("${server.port}")
    private String serverPort;

    @RequestMapping("/server")
    public String server() {
        return "this is ZookeeperServer,端口号为:"+serverPort;
    }
}



